package leetcode.medium.findanagrams;

import java.util.Arrays;
import java.util.List;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;

import util.AssertUtils;
import util.SolutionValidator;

public class SolutionTest {
    private static Solution solution;

    @BeforeClass
    public static void setup() {
        SolutionValidator.checkSolved(Solution.class);
        solution = new Solution();
    }

    @AfterClass
    public static void tearUp() {
        solution = null;
    }

    @Test
    public void test1() {
        String s = "cbaebabacd", p = "abc";
        List<Integer> res = solution.findAnagrams(s, p);
        AssertUtils.assertListEquals(Arrays.asList(0, 6), res);
    }
}
